#-- coding:utf-8 --

#定义一个类
class Person(object):
      
      #定义一个初始函数进行类的数据初始化
      def __init__(self, name, score):
          self.name = name 
          self.score = score
          print '构造方法被调用'

      def print_score(self):
          print 'name: %s 成绩是 %s' % (self.name, self.score)


zs = Person('zs', 80)
ls = Person('ls', 90)

zs.print_score()
ls.print_score()


#类的继承
class StrongPerson(Person):
      def _init_(self,name,score):
          print '子类的构造方法'  


      def print_score(self):
          print'this method in son' 


ww = StrongPerson('ww',100)
ww.print_score()
